package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    UserInfo selectById(String id);

    /**
     * 判断手机号码是否注册
     * @param phone
     * @return
     */
    boolean selectByPhone(String phone);

    /**
     * 发送短信
     * @param phone
     * @param ssmUrl
     * @param ssmAppkey
     * @param ssmSign
     * @return
     */
    String sendVerifyCode(String phone, String ssmUrl, String ssmAppkey, String ssmSign);

    void regist(String phone, String verifyCode, String nickname, String password, String rpassword);

    UserInfo login(String username, String password);

    List<UserInfo> list ();

    UserInfo get(String id);

    List<UserInfo> findByCity(String keyword);

    List<UserInfo> fingByIdIn(List ids);

    void update(UserInfo userInfo1);
}
